import request from '@/utils/request'

// 查询热处理工艺报列表
export function listWorkload(query) {
  return request({
    url: '/demo/workload/list',
    method: 'get',
    params: query
  })
}

// 查询热处理工艺报详细
export function getWorkload(id) {
  return request({
    url: '/demo/workload/' + id,
    method: 'get'
  })
}

// 新增热处理工艺报
export function addWorkload(data) {
  return request({
    url: '/demo/workload',
    method: 'post',
    data: data
  })
}

// 修改热处理工艺报
export function updateWorkload(data) {
  return request({
    url: '/demo/workload',
    method: 'put',
    data: data
  })
}

// 删除热处理工艺报
export function delWorkload(id) {
  return request({
    url: '/demo/workload/' + id,
    method: 'delete'
  })
}
